﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BorisTheBlade
{
	class AtentisConnectorEventArgs: EventArgs
	{

        private WrapperSecurities m_SecuritiesRow;
        /// <summary>
        /// Новая строка таблицы финансовых инструментов
        /// </summary>
        public WrapperSecurities SecuritiesRow { get { return m_SecuritiesRow; } }

        public AtentisConnectorEventArgs(WrapperSecurities row)
            : base()
        {
            this.m_SecuritiesRow = row;
        }

		private WrapperAll_Trades m_AllTradesRow;
		/// <summary>
		/// Новая строка таблицы всех сделок
		/// </summary>
		public WrapperAll_Trades AllTradesRow { get { return m_AllTradesRow; } }

		public AtentisConnectorEventArgs(WrapperAll_Trades row)
			: base()
		{
			this.m_AllTradesRow = row;
		}

		private WrapperOrderbook m_WrapperOrderbookRow;
		/// <summary>
		/// Новая строка таблицы всех сделок
		/// </summary>
		public WrapperOrderbook WrapperOrderbookRow { get { return m_WrapperOrderbookRow; } }

		public AtentisConnectorEventArgs(WrapperOrderbook row)
			: base()
		{
			this.m_WrapperOrderbookRow = row;
		}

        private List<WrapperOrderbook> m_WrapperOrderbook;
        /// <summary>
        /// Orderbook
        /// </summary>
        public List<WrapperOrderbook> WrapperOrderbook { get { return m_WrapperOrderbook; } }

        public AtentisConnectorEventArgs(List<WrapperOrderbook> row)
            : base()
        {
            this.m_WrapperOrderbook = row;
        }

		private WrapperTrades m_WrapperTradesRow;
		/// <summary>
		/// Новая строка таблицы своих сделок
		/// </summary>
		public WrapperTrades WrapperTradesRow { get { return m_WrapperTradesRow; } }

		public AtentisConnectorEventArgs(WrapperTrades row)
			: base()
		{
			this.m_WrapperTradesRow = row;
		}


		private WrapperPositions m_WrapperPositions;
		/// <summary>
		/// Новая строка таблицы позиций
		/// </summary>
		public WrapperPositions WrapperPositions { get { return m_WrapperPositions; } }

		public AtentisConnectorEventArgs(WrapperPositions row)
			: base()
		{
			this.m_WrapperPositions = row;
		}

		private WrapperFirm_Holding_Total m_WrapperHoldings;
		/// <summary>
		/// Новая строка таблицы позиций по бумагам
		/// </summary>
		public WrapperFirm_Holding_Total WrapperHoldings { get { return m_WrapperHoldings; } }

		public AtentisConnectorEventArgs(WrapperFirm_Holding_Total row)
			: base()
		{
			this.m_WrapperHoldings = row;
		}
	}
}
